﻿using System.Windows;

namespace SHA_SuRe
{
    /// <summary>
    /// Interaction logic for MainWindow.xaml
    /// </summary>
    public partial class MainWindow : Window
    {
        public MainWindow()
        {
            InitializeComponent();
            editorDiggest.SaveFileInfo = true;
        }

        private void buttonHash_Click(object sender, RoutedEventArgs e)
        {
            editorDiggest.SetText(Core.doSHA1(Helper.StringToArrayByte(editorSource.GetText())));
        }
    }
}
